package microframe.navigation
{
	import microframe.navigation.abs.AbsNavigation;
	import microframe.navigation.interfaces.INaviLayout;
	import microframe.navigation.layout.LayoutVertical;
	import microframe.navigation.manager.NaviLayoutMananger;
	
	/**
	 * @author winnie
	 */	
	public class NaviMain extends AbsNavigation
	{
		/**
		 * NaviTypeMananger에 정의된 레이아웃 타입 
		 */		
		public var typeOfLayout : String;
		public var naviLayout : INaviLayout;
		
		
		public function NaviMain( xmlUrl : String, layoutType : String )
		{
			super();
			
			this.typeOfLayout = layoutType;
			super.xmlUrl = xmlUrl;
		}
		
		
		/**
		 *  setBTnClip를 완료한 이후의 메서드호출
		 */		
		override public function init():void
		{
			super.init();
		}
			
		
		
		override protected function initLayout():void
		{
			super.initLayout();
			
			switch( typeOfLayout )
			{
				case NaviLayoutMananger.VERTICAL_LAYOUT : naviLayout = new LayoutVertical( this ); break; 
			}
			
			super.layout = naviLayout;
			
		}
	}
}